package com.example.generator.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * <p>
 *
 * </p>
 *
 * @author zhouchang
 */
@Data
@ConfigurationProperties(prefix = "generator")
public class GeneratorConfiguration {

    private String author = "mp.generator";
    private String module = "";
    private String parentPackage = "";
    private String mapperName = "%sMapper";
    private String xmlName = "%sMapper";
    private String serviceName = "%sService";
    private String serviceImplName = "%sServiceImpl";
    private String controllerName = "%sController";
    private String controllerPackageName = "rest";
    private String entityPackageName = "entity";

    private String url;
    private String username;
    private String password;

    private String tableNames;
    private String tablePrefix = "";
    private String logicDeleteName;
    private boolean enableLombokModel = true;
    private String mapperTemplate = "/templates/mapper.xml.vm";
    private String controllerTemplate;

    private String rootLocation="";
    private String xmlMapperLocation="";
    private String mapperInterfaceLocation="";
    private String dataObjectLocation="";
    private String serviceInterfaceLocation="";
    private String serviceImplLocation="";
    private String controllerLocation="";

}
